#include<string>

#include "Composite.h"

using namespace std;

int main(int argc, char** argv)
{
	Leaf* l = new Leaf(); 
	Composite* com = new Composite(); 
	Composite* com_child = new Composite(); 
	
	com->Add(l);
	com->Add(com_child);
	com->Operation();

	cout << "try get child---\n";
	com->GetChild(1)->Operation();

	delete l;
	delete com;
	delete com_child;
	
	return 0;
}
